package com.szzg10.webservice.chapter3;

import com.szzg10.webservice.chapter3.wsimport.FibException_Exception;
import com.szzg10.webservice.chapter3.wsimport.RabbitCounter;
import com.szzg10.webservice.chapter3.wsimport.RabbitCounterService;

public class FibClientHR {

	public static void main(String[] args) {
		
		RabbitCounterService service = new RabbitCounterService();
		service.setHandlerResolver(new ClientHandlerResolver());
		
		RabbitCounter port = service.getRabbitCounterPort();
		
		try {
			int i = port.countRabbits(-10);
			System.out.println();
			System.out.println(i);
		} catch (FibException_Exception e) {
			System.err.println(e);
		}
	}
}
